/**
 * Copyright(c) 2015 Jade Techonologies Co., Ltd.
 *
 * History:
 *   15-1-20 上午11:10 Created by lyyang
 */
package com.jade.modules.config;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 参数分组类
 *
 * @author <a href="mailto:lyyang@jade.com">lyyang</a>
 * @version 1.0 15-1-20 上午11:10
 */
@Entity
@Table (name = "MODULE_CONFIG_GROUP")
public class ConfigGroupEntity implements Serializable
{
    public static final int STATUS_NORMAL = 0;
    public static final int STATUS_READONLY = 1;

    @Id
    @GeneratedValue (generator = "MODULE_SEQ_CONFIG_GROUP")
    @SequenceGenerator (name = "MODULE_SEQ_CONFIG_GROUP", initialValue = 100, sequenceName = "MODULE_SEQ_CONFIG_GROUP")
    private long id;
    //所有者类型
    @Column (name = "owner_type", length = 32)
    private String ownerType;
    //所有者标识
    @Column (name = "owner_id", length = 64)
    private String ownerId;
    //状态
    @Column (name = "status")
    private int status = STATUS_NORMAL;
    @Column (name = "order_code")
    private int orderCode = 100;
    @Column (name = "config_key", length = 32)
    private String key;
    @Column (name = "config_value", length = 32)
    private String value;
    @Column (name = "title", length = 32)
    private String title;
    @Column (name = "remark", length = 64)
    private String remark;
    @Column (name = "update_time")
    private Date updateTime;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getOwnerId()
    {
        return ownerId;
    }

    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getOwnerType()
    {
        return ownerType;
    }

    public void setOwnerType(String ownerType)
    {
        this.ownerType = ownerType;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public int getOrderCode()
    {
        return orderCode;
    }

    public void setOrderCode(int orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = key;
    }

    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = value;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }
}
